﻿#include <iostream>
#include <thread>

void task() {
    std::cout << "Thread ID: " << std::this_thread::get_id() << std::endl;
    std::this_thread::sleep_for(std::chrono::seconds(1));  // 睡眠1秒
}

int main() {
    std::thread t(task);
    t.join();
    return 0;
}
